<%@tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@attribute name="item" required="true" type="cn.livingCloud.dto.ConsultationDto" %>

<a class="weui_cell" href="consultation_info.htm?uuid=${item.uuid}">
    <div class="weui_cell_hd">
        <c:if test="${item.userState eq 'NO_REPLY'}">
            <span class="status status_primary">未回复</span>
        </c:if>
        <c:if test="${item.userState eq 'REVERTED'}">
            <span class="status status_warn">已回复</span>
        </c:if>
        <c:if test="${item.userState eq 'CLOSED'}">
            <span class="status status_disable">已关闭</span>
        </c:if>
    </div>
    <div class="weui_cell_bd weui_cell_primary">
        <p>${item.title}</p>
        <c:if test="${not empty item.lastReply }">
            <small class="weui_textarea_counter">${item.lastReply}</small>
        </c:if>
        <c:if test="${empty item.lastReply}">
            <small class="weui_textarea_counter">${item.createTime}</small>
        </c:if>
    </div>

    <div class="weui_cell_ft"></div>
</a>